<?php
require 'functions.inc';

//define user array
$user1 = array('firstName' => 'Jon', 'lastName' => 'Rivera', 'email' => 'rivera36@hawaii.edu', 'username' => 'JonRiv', 'password' => 'abcde');
$user2 = array('firstName' => 'Saori', 'lastName' => 'Takasaki', 'email' => 'saoritak@hawaii.edu', 'username' => 'Saori', 'password' => '12345');
$user3 = array('firstName' => 'Daniel', 'lastName' => 'Port', 'email' => 'dport@hawaii.edu', 'username' => 'dport', 'password' => 'vwxyz');
$user4 = array('firstName' => 'Ash', 'lastName' => 'Ketchum', 'email' => 'pallettown@hawaii.edu', 'username' => 'itm352', 'password' => 'grader');
$user5 = array('firstName' => 'Dao', 'lastName' => 'Mai', 'email' => 'daomailovely@gmail.com', 'username' => 'daomai', 'password' => '12345');

$all_users["JonRiv"] = $user1;
$all_users["Saori"] = $user2;
$all_users["dport"] = $user3;
$all_users["itm352"] = $user4;
$all_users["itm352"] = $user5;

//this function takes the $all_users array and freezes that in an arrayfile.
array_to_arrayfile($all_users, './user_data.dat');
var_dump($all_users);
?>
